package com.gpvip.study.factorymethod;

/**
 * @Author：xuchy
 * @Date：2020/2/24
 */
public class FactoryMethodTest {
    public static void main(String[] args) {
        IPayFactory payFactory = new WxIPayFactory();
        IPay pay = payFactory.createPay();
        pay.doPay();//支付
        pay.transfer();//转账
    }
}
